package cn.pomelo.secondskill.mapper;

import cn.pomelo.secondskill.model.Orders;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

@Mapper
public interface OrdersMapper {
    int deleteByPrimaryKey(String id);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> selectAll();

    Orders findByUseridAndGoodsId(Integer userId, Integer goodsId, Integer state);

    List<Orders> selectByUserId(Integer userid);

    List<Orders> selectByCondition(Orders record);
}